package com.example.producerservice;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Classname ProducerController
 * @Description
 * @Author caozhenhao001
 * @Date 2024/3/25
 * @Version
 */
@RestController
public class ProducerController {

    @Autowired
    private ProducerServiceImpl producerService;

    @GetMapping("/sendMsg/{msg}")
    public String sendMsg(@PathVariable(name = "msg") String msg){
        return producerService.sendMsg(msg);
    }
}
